﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="Registration.aspx.cs" Inherits="Registration" %>

<%@ Register Src="UserControls/EditUserProfile.ascx" TagName="EditUserProfile" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
    <asp:MultiView ID="mvRegistration" runat="server" ActiveViewIndex="0">
        <asp:View runat="server" ID="mvViewUserAccount">
            <%--Alap adatok--%>
            <table width="100%" border="0">
                <tr>
                    <td align="center" colspan="2">
                        Sign Up for Your New Account
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="tbUserName">User 
                                Name:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="tbUserName" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="tbUserName"
                            ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="ValidationGroup1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="Password" runat="server" TextMode="Password" EnableViewState="true"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ValidationGroup1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirm 
                                Password:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword"
                            ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required."
                            ValidationGroup="ValidationGroup1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="right">
                        <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                    </td>
                    <td>
                        <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                            ErrorMessage="E-mail is required." ToolTip="E-mail is required." ValidationGroup="ValidationGroup1">*</asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2">
                        <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password"
                            ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match."
                            ValidationGroup="ValidationGroup1"></asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="2" style="color: Red;">
                        <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                    </td>
                </tr>
            </table>
            <br />
            <asp:Button ID="btnNext_ToProfile" ValidationGroup="ValidationGroup1" runat="server"
                Text="Button" OnClick="Button1_Click" />
            <%--   //  Alap adatok--%>
        </asp:View>
        <asp:View runat="server" ID="mvViewProfile">
            <uc1:EditUserProfile ID="EditUserProfile2" runat="server" />
            <asp:Button ID="btnCreateUser" runat="server" Text="Create" OnClick="btnCreateUser_Click" />
        </asp:View>
        <asp:View runat="server" ID="mvViewSuccess">
            <asp:Label ID="lblRegSuccessText" runat="server" Text="Registratoin succeed"></asp:Label>
            <asp:HyperLink ID="hlnkStart" NavigateUrl="~/Login.aspx" runat="server">Start!!4</asp:HyperLink>
        </asp:View>
        <asp:View runat="server" ID="mvViewFailed">
            <asp:Label ID="lblFailedText" runat="server" Text="Registration failed..."></asp:Label>
        </asp:View>
    </asp:MultiView>
</asp:Content>
